/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bsd5ex.group1.kaokang;

import com.bsd5ex.group1.kaokang.dao.OrderDAO;
import com.bsd5ex.group1.kaokang.model.OrderLineItem;
import java.util.Set;

/**
 *
 * @author IBIAINIKI
 */
public class OrderView {
    
    public int getOrderTotalPrice(int orderID){
       return new OrderDAO().getOrderByID(orderID).getTotalPrice();
    }
    
    public Set<OrderLineItem> getOrderLineItem(int orderID){
        return new OrderDAO().getOrderByID(orderID).getOrderLineItems();
    }
    
}
